package com.karry.yl.domain.elder;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.karry.commons.base.SuperEntity;
import jdk.nashorn.internal.ir.IdentNode;

/**
 * 老人家庭成员
 */
@TableName("folk")
public class Folk extends SuperEntity {

    private String name;

    private String relation; // 关系

    private String phone;  //联系电话
    @JsonSerialize(using = ToStringSerializer.class)
    private Long elderlyId;  //所属老人

    private String cardNo;//身份证

    private String address;//联系地址

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getElderlyId() {
        return elderlyId;
    }

    public void setElderlyId(Long elderlyId) {
        this.elderlyId = elderlyId;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
